<?php

namespace plugin\colewechat\app\admin\controller;

use app\common\controller\BaseAdminController;
use DI\Attribute\Inject;
use plugin\colewechat\app\service\MenuService;

class MenuController extends BaseAdminController
{
    /**
     * @var MenuService
     */
    #[Inject]
    private MenuService $service;

    /**
     * 同步菜单
     */
    public function sync()
    {
        $res = $this->service->sync();
        return $this->success($res);
    }

}
